package com.movitech.mobile.cz.base.purchase.mapper.ext;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.movitech.mobile.cz.base.purchase.entity.ext.ExtPSpecialPurchasePlan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 专项采购计划 Mapper 接口
 * </p>
 *
 * @author Blue.Xia
 * @since 2018-03-08
 */
@Component
@Mapper
public interface ExtPSpecialPurchasePlanMapper extends BaseMapper<ExtPSpecialPurchasePlan> {

    List<ExtPSpecialPurchasePlan> findSpecialPurchasePlanList(Map<String, Object> map);

    Integer findSpecialPurchasePlanListCount(Map<String, Object> map);

    ExtPSpecialPurchasePlan getSpecialPurchasePlanById(@Param("specialPurchasePlanId") String specialPurchasePlanId);

    List<ExtPSpecialPurchasePlan> getPSpPlanUnConfirmProjects();
    String  getNewPlansByProjectId(String projectId);

    /**
     * 专项采购计划确认项目列表获取,当前登录所在地区公司
     * @param regionalCompanyId 
     * @return
     */
	List<ExtPSpecialPurchasePlan> getConfirmedProjects(@Param("regionalCompanyId") String regionalCompanyId);

    void updateChangeTime(@Param("ids") String[] planIds);
}
